package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * Created by kelvin.nguyen on 7/21/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderHistory {
    private int orderId;
    private Date timeCreate;
    private String status;
    private int amountTotal;

    @JsonProperty("OrderID")
    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    @JsonProperty("TimeCreated")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="MM/dd/yyyy", timezone="ICT")
    public void setTimeCreate(Date timeCreate) {
        this.timeCreate = timeCreate;
    }


    @JsonProperty("AmountTotal")
    public void setAmountTotal(int amountTotal) {
        this.amountTotal = amountTotal;
    }

    @JsonProperty("Status")
    public void setStatus(String status) {
        this.status = status;
    }

    public int getOrderId() {
        return orderId;
    }


    public Date getTimeCreate() {
        return timeCreate;
    }

    public int getAmountTotal() {
        return amountTotal;
    }

    public String getStatus() {
        return status;
    }
}
